package org.yourscrum.domain;

/**
 * <p>Class that acts as an abstraction to present items in a sorted list. This way we can sort Theme's as well as
 * stories in the same list.</p>
 *
 * @author Jettro Coenradie
 */
public class Sortable<T> {
    private String id;
    private T item;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public T getItem() {
        return item;
    }

    public void setItem(T item) {
        this.item = item;
    }

    public String description() {
        return item.toString();
    }
}
